package com.xin.springcloudconsumer.dto;

import lombok.Data;

import java.util.List;

@Data
public class PageResult<T> {
    private long total; //总元素
    private Integer pageNo;  //总页数
    private Integer pageSize;  //每页大小
    private List<T> content; //内容
    public PageResult(){

    }

    public PageResult(long total,Integer pageNo,Integer pageSize,List<T> content){
            this.total=total;
            this.pageNo=pageNo;
            this.pageSize=pageSize;
            this.content=content;
    }

}
